import VueRouter from 'vue-router'
import Login from "@/pages/Login";
import Register from "@/pages/Register";
import Portrait from "@/pages/Portrait";
import Index from "@/pages/Index"
export default new VueRouter({
    mode:'history',
    routes:[
        //一级路由
        /**
         * 登录组件
         */
        {
            name:'login',
            path:'/',
            component:Login
        },


        /**
         * 注册组件
         */
        {
            name:'register',
            path:'/register',
            component:Register
        },


        /**
         * 人脸组件
         */
        {
            name:'portrait',
            path:'/portrait',
            component:Portrait
        },


        /**
         * 主页组件
         */
        {
            name:'index',
            path:'/index',
            component:Index
        }



    ]
})